#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_Record_Button_clicked()
{
    ui->Record_Button->setEnabled(false);
    ui->Stop_Button->setEnabled(true);
    QCoreApplication::processEvents();
    rec.record();
}

void MainWindow::on_Stop_Button_clicked()
{
    ui->Record_Button->setEnabled(true);
    ui->Stop_Button->setEnabled(false);
    QCoreApplication::processEvents();
    rec.Recording = 0;
}
